#ifndef __MSG_H__ 
#define __MSG_H__

#include "handle.h"
#include "head.h"

typedef struct{
    int len;
    CmdType type;
    char data[BUF_SIZE];
}msg_t;

int sendMsg(
    int net_fd,
    CmdType type,
    const char *data
);

int recvMsg(
    int net_fd,
    CmdType * type,
    char * data
);

#endif
